<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>电子收文查询列表</title>
<%@ include file="/pages/inc/header.jsp" %>
<script type="text/javascript">
<%@ include file="/pages/jsp/docReceive/dtReceiveDocumentList.js" %>
</script>
<style type="text/css">.datagrid-body{overflow-y:hidden; }</style>
</head>
<body>
<div class="main" style="width: 96%;margin: auto;">
	<div class="queryControl"><img src="<c:url value='/images/queryListBtn_exp.png'/>" onclick="toggleQueryArea(this)" /></div>
	<div class="queryArea">
	<!-- 搜索栏 -->
	<table id="searchTable"  class="searchTable" cellpadding="0" cellspacing="0">
		<caption>查询条件</caption>
		<tr>			
			<td class="staticTdNW" style="width: 15%;">公文标题：</td>
			<td class="dynamicTdNW" style="width: 35%;">
				<input id="docTitle" name="docTitle" type="text" class="easyui-textbox" style="width: 152px;" value="<c:out value='${dtReceiveDocument.docTitle}'/>"/>
			</td>			 	
			<td class="staticTdNW" style="width: 15%;">来文编号：</td>
			<td class="dynamicTdNW" style="width: 35%;">
				<input id="docNumber" name="docNumber" class="easyui-textbox" type="text" style="width: 152px;"  value="<c:out value='${dtReceiveDocument.docNumber}'/>"/>
			</td>						
		</tr>
		<tr>
			<td class="staticTdNW">来文单位：</td>
			<td class="dynamicTdNW">
				<input id="docSenderOrgName" name="docSenderOrgName" class="easyui-textbox" style="width: 152px;" type="text"  value="<c:out value='${dtReceiveDocument.docSenderOrgName}'/>"/>
			</td>
			<td class="staticTdNW">发文时间：</td>
			<td class="dynamicTdNW">
				<input id="docSendTime" name="docSendTime" class="easyui-datebox" editable="false" style="width: 155px;"  value="<c:out value='${dtReceiveDocument.docSendTime}'/>"/>
			</td>				
		</tr>	
		<tfoot>
			<td class="footTd" colspan="4">
				<div class="inlineBlock">  
		            <a id="searchButton" href="#" class="easyui-linkbutton" plain="true" icon="icon-search">查询</a>  
		        </div>
			</td>
		</tfoot>
	</table>
	</div>
	
	<div class="hidden" id="newcome">
		<form id="reasonForm">
				<table class="searchTable" cellpadding="0" cellspacing="0">
				<caption>拒收回执信息</caption>
				<tr>			
					<td class="staticTdNW" style="width: 25%;">回执信息</td>
					<td class="dynamicTdNW" style="width: 75%;">
						<textarea id="receiveInfo" class="easyui-textbox" data-options="multiline:true,required:true" style="width: 90%;height: 150px;"></textarea>
					</td>						
				</tr>
				</table>
		</form>
</div>
	
	<div id="container">
	<!-- 列表表格 -->
	<table id="synFromTable" style="width: 100%;"></table>
	<!-- 表头工具栏 -->
	<div id="synFromToolbar">
		<div class="captionDiv">
			<c:choose>
				<c:when test="${canOperate eq 'newcome'}">待签收文件列表</c:when>
				<c:when test="${canOperate eq 'signIn'}">已签收文件列表</c:when>
				<c:when test="${canOperate eq 'refused'}">已拒收文件列表</c:when>
			</c:choose>
		</div>
		<div class="leftFloat">
			<c:if test="${canOperate eq 'signIn' || canOperate eq 'refused'}">
				<tr>
					<th colspan="8" class="grid-btn">
						<div class="toolbar" style="margin:2px;float:left" >
							<%-- <c:if test="${canOperate eq 'signIn'}">
								<a href="#" id="receviceButton" class="easyui-linkbutton" plain="true"  icon="icon-search"> 导出到excel表</a>
							</c:if> --%>
							<a href="#" id="deleteButton" class="easyui-linkbutton" plain="true"  icon="icon-remove">删除</a>
						</div>
					</th>
				</tr>
			</c:if> 
			<c:if test="${canOperate eq 'newcome'}">
				<tr>
					<th colspan="8" class="grid-btn">
						<div id="changeButton1" class="toolbar" style="margin:2px;float:left" >
							<a href="#" id="signInButton" class="easyui-linkbutton" plain="true"  icon="icon-add">签收</a>
							<a href="#" id="refusedButton" class="easyui-linkbutton" plain="true"  icon="icon-remove">拒收</a>
							<c:if test="${changeButton eq 'show'}">
							<a href="#" id="changeButton" class="easyui-linkbutton" plain="true"  icon="icon-edit">${receiverType=='2'?'转技术收文':'转行政收文'}</a>
							</c:if>
						</div>
					</th>
				</tr>
			</c:if>             
        </div>  
	</div>
	</div>
	
	<div id="dialogDiv">
		<iframe id="dialogIframe" width="100%" frameborder="0" scrolling="no" />
	</div>
</div>
</body>
</html>